package com.hnhegui.backend.order.dto.request;

import cn.hutool.core.date.DatePattern;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Getter
@Setter
public class AdminOrdersRequestDTO {

    private String orderNo;
    private String userId;
    private String productName;
    private String receiverPhone;
    private String status;
    private String paymentStatus;

    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime endTime;

    private Integer page = 1;
    private Integer pageSize= 20;
}
